﻿using AntMovement.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AntMovement.Model
{
    public class TaskModel
    {
        public int Index { get; set; }
        public string Name { get; set; }
        public ITask Handle { get; set; }

        public int CompareTo(TaskModel p)
        {
            int result = 0;
            if (Index == p.Index) result = 0;
            if (Index > p.Index) result = 1;
            if (Index < p.Index) result = -1;
            return result;
        }
    }
}
